/*
 * ConnectionCallback.h
 *
 *  Created on: Jan 7, 2011
 *      Author: dt
 */

#ifndef CONNECTIONCALLBACK_H_
#define CONNECTIONCALLBACK_H_

#include "talk/base/helpers.h"
//#include "PipeEp.h"

class PipeEp;

  enum ConnectionState {
    TUNNEL_OPENING = 1,
    TUNNEL_ACTIVE  = 2,
    TUNNEL_CLOSED = 3,
  };

class ConnectionCallback
{
public:

  virtual void onTunnelConnect(PipeEp* pipe) = 0;

  virtual void onTunnelDisconnect(PipeEp* pipe, bool withError) = 0;

  virtual void onDataRecive(PipeEp* pipe, const char* buf, size_t size) = 0;

  //std::string& getRemoteUser();


};

#endif /* CONNECTIONCALLBACK_H_ */
